<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary 
  x:Class="OpenLS.UI.OfficeResources"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:oui="clr-namespace:OpenLS.UI"
  >
  <ResourceDictionary.MergedDictionaries>
        <oui:ComboBoxResources/>
  </ResourceDictionary.MergedDictionaries>
  
  <DataTemplate DataType="{x:Type FontFamily}">
<!--    <TextBlock Text ="{Binding Source}" Loaded="OnFontTextBlockLoaded" FontSize="14"/> -->
    <TextBlock Text ="{Binding Source}" FontSize="14" FontFamily="{Binding}" Width="220"/>
  </DataTemplate>

  <Style TargetType ="{x:Type ToolTip}" x:Key="{x:Type ToolTip}">

    <Setter Property ="Template">
      <Setter.Value>
        <ControlTemplate TargetType ="{x:Type ToolTip}">
          <Border Background ="{x:Null}" Padding="5">

            <Border Background ="{DynamicResource {x:Static oui:OfficeBrushes.TooltipBackgroundKey}}" CornerRadius="5"
                    BorderThickness="1"
                    BorderBrush="Gray"
                    TextElement.Foreground="Gray"
                    >
              <ContentPresenter Margin ="3"/>
            </Border> 
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

</ResourceDictionary>